<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:66:"E:\php\WWW\qings\public/../application/index\view\index\index.html";i:1494854696;s:65:"E:\php\WWW\qings\public/../application/index\view\index\base.html";i:1494854450;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>清水书架</title>
	<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
	<link href="__PUBLIC__bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script src="__PUBLIC__bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <nav class="navbar navbar-default navbar-static-top" role="navigation">
        <div class="container-fluid">
        <div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
                data-target="#example-navbar-collapse">
            <span class="sr-only">导航</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
            <a class="navbar-brand" href="<?php echo url('index/index/index'); ?>">清水书架</a>
        </div>
        <div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="<?php echo url('index/index/index'); ?>">首页</a></li>
                <li><a href="<?php echo url('index/index/test'); ?>">登陆</a></li>
                <li><a href="#">注册</a></li>
            </ul>
        
            <form class="navbar-form navbar-right" role="search" method="post" action="<?php echo url('index/index/queryListQidian'); ?>">
                <div class="form-group">
                    <input type="text" name="book" class="form-control" placeholder="请输入书名">
                    <input type="submit" class="btn btn-primary" value="提交">
                </div>
            </form>
        </div>
        </div>
    </nav>
</div>
<div class="container">
	
    <div class="container">
        <table class="table table-hover">
            <caption>小说排行榜</caption>
            <thead>
            <tr>
                <th>书名</th>
                <th>作者</th>
                <th>起点链接</th>
                <th>最新章节(因起点缓存问题，最新章节可能不准)</th>
            </tr>
            </thead>
            <tbody>
                <?php foreach($data as $value): ?>
                <tr>
                    <td><a href="<?php echo url('index/index/queryListBaidu',array('book'=>$value['name'])); ?>?link=<?php echo $value['link']; ?>"><?php echo $value['name']; ?></a></td>
                    <td><?php echo $value['author']; ?></td>
                    <td><a href="<?php echo $value['link']; ?>"><?php echo $value['link']; ?></a></td>
                    <td><?php echo $value['update']; ?></td>
                </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
        
		<ul class="pager">
			<li class="previous"><a href="<?php echo url('index/index/index',array('page'=>$page-1)); ?>">&larr; 上一页</a></li>
			<li class="next"><a href="<?php echo url('index/index/index',array('page'=>$page+1)); ?>">下一页 &rarr;</a></li>
		</ul>
    </div>

</div>

<div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2 text-center">
                    <hr class="primary">
                    清水书架，最清爽的书架!
                </div>
                <div class="col-lg-4 col-lg-offset-2 text-center">
                    <i class="fa fa-phone fa-3x sr-contact"></i>
                    <p>123456789</p>
                </div>
                <div class="col-lg-4 text-center">
                    <i class="fa fa-envelope-o fa-3x sr-contact"></i>
                    <p><a href="mailto:1309603684@qq.com">邮件联系</a></p>
                </div>
            </div>
        </div>


</body>
</html>